﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
using DAO;
namespace BUS
{
    public class NhaCCBUS
    {
        public bool KtNhaCC(string TenNCC)
        {
            NhaCCDAO NhaCC = new NhaCCDAO();
            return NhaCC.KtNhaCC(TenNCC);
        }
        public List<NhaCCDTO> LayNhaCC()
        {
            NhaCCDAO NhaCC = new NhaCCDAO();
            return NhaCC.LayNhaCC();
        }
        public bool ThemNhaCC(string TenNhaCC)
        {
            NhaCCDAO NhaCC = new NhaCCDAO();
            return NhaCC.ThemNhaCC(TenNhaCC);
        }
        public bool CapNhatNhaCC(string TenNhaCCCu, string TenNhaCCMoi)
        {
            NhaCCDAO NhaCC = new NhaCCDAO();
            return NhaCC.CapNhapNhaCC(TenNhaCCCu, TenNhaCCMoi);
        }
        public NhaCCDTO LayNCCTheoMa(int MaNCC)
        {
            NhaCCDAO ncc = new NhaCCDAO();
            return ncc.LayNCCTheoMa(MaNCC);
        }
        public bool XoaNhaCC(string TenNhaCC)
        {
            NhaCCDAO NhaCC = new NhaCCDAO();
            return NhaCC.XoaNhaCC(TenNhaCC);
        }

    }
}
